package cn.itcast.Service;

import cn.itcast.mapper.UserMapper;
import cn.itcast.pojo.User;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;
    public User findUserById(Long userId) {
        User user = userMapper.findUserById(userId);
        return user;

    }
}
